package com.adnaan.restaurant.controller;

import com.adnaan.restaurant.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: adnaan
 * @create: 2023-10-18 15:55
 * @Description:
 */

@RestController
@RequestMapping("/api")
public class FirstController {

    @GetMapping("/show")
    public Student show() {
        Student student = new Student();
        student.setName("杜勇");
        student.setSno("21003150319");
        student.setSex("男");
        return student;
    }
}
